﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="DisplayLoginForm.aspx.cs" Inherits="CodeDemon.Views.User.DisplayLoginForm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">

 <form action="/CodeDemon/User/ProcessLoginRequest" method="post" id="htmlForm">
    <h2>Log In to Code Demon</h2>
    <div>
    <label for="username"><span>E-Mail Address:</span><input name="username" value="" /></label>
    </div>
    <div>
    <label for="password"><span>Password:</span><input type="password" name="password" value="" /></label>
    </div>
    <div class="errorMessage"><%= ViewData.Model.ErrorMessage%></div>
    <input type="submit" value="Login" />
    <% if (ViewData.Model.VarHash.Keys.Contains("ReturnURL"))
       {%>
    <input type="hidden" name="ReturnURL" value="<%= ViewData.Model.VarHash["ReturnURL"] %>" />
    <%} %>
    </form>
</asp:Content>
